package com.hengtiansoft.lfy.activity;

import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.text.method.ScrollingMovementMethod;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.TextView;

import com.hengtiansoft.lfy.R;


/**
 * 全屏显示文本页面
 */
public class FullScrenActivity extends FragmentActivity {
    private TextView mTvBig;
    private ImageView mIvBack;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_full_scren);
        String data = getIntent().getStringExtra("translate");
        mTvBig = (TextView) findViewById(R.id.tv_big);
        mTvBig.setText(data);
        float textsize1 = mTvBig.getTextSize();
        mTvBig.setMovementMethod(new ScrollingMovementMethod());
        mIvBack = (ImageView) findViewById(R.id.iv_back);
        mIvBack.setOnClickListener(new OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });

    }
}
